<style type="text/css">
	.zhuti {
		background: #49bfbf;
		background: rgba(73, 191, 191, 0.95);
		filter: alpha(opacity=95);
		padding: 20px 10px 20px 30px;
		width: 350px;
		position: absolute;
		top: 40px;
		left: -10px;
	}
	
	.zhuti .g_menu_con01 span {
		height: 24px;
		display: block;
		margin: 10px 100px 15px 0;
		float: left;
	}
	
	.zhuti .g_menu_con01 a {
		/*background: red;*/
		font-size: 15px;
		color: #fff;
		display: inline-block;
		float: left;
		height: 20px;
		line-height: 20px;
		width: 64px;
		text-align: center;
	}
	
	.zhuti .g_menu_con01 a:hover {
		border-bottom: 2px solid #fff;
	}
	
	.bottom-line {
		position: absolute;
		display: block;
		height: 5px;
		width: 70px;
		background: #000000;
		left: 21%;
		top: 90%;
	}
	
	.map-icon {
		position: absolute;
		background: transparent;
		width: 23px;
		height: 23px;
		display: block;
		top: 192px;
		left: 170px;
	}
	
	.line_show {
		overflow: hidden;
	}
	
	.line_show a:hover img {
		transform: none;
	}
	
	* {
		font-family: "微软雅黑";
	}
</style>
<div class="maskerElement" onclick="$('#login_box').hide();$(this).hide()" id="maskerElement" style="position: absolute; left: 0px; top: 0px; z-index: 1000; opacity: 0.6; width: 100%; height: 6000px; background-color: black; display: none;"></div>
<div class="formleft tan_p" style="display: none;" id="login_box">
	<div class="jiaru_c login"></div>
	<!--登录-->
	<h2>登录<span><a href="{:U('User/register')}" name="fuceng-denglu-zhuce">立即注册></a></span></h2>
	<form class="loginForm" method='post' id="loginForm">
		<input type="hidden" name="refer" id="reg_refer" value="" />
		<div class="forminput">
			<input id="login_info" name="login_info" class="valifytext" type="text" placeholder="手机号/邮箱" AUTOCOMPLETE="OFF" />
			<span class="wrong left" style="display: none" id="user_msg">填写正确的邮箱格式</span>
			<span class="duihao" style="display: none"></span>
		</div>
		<div class="forminput">
			<input id="password" name="password" type="text" class="valifytext" placeholder="请输入密码" />
			<span class="wrong left" style="display: none" id="pwd_msg">填写6-32个字符</span>
			<span class="duihao" style="display: none"></span>
		</div>
		<div class="regist_qie black">
			<a href="http://login.uthing.cn/findpwd/default" name="fuceng-denglu-mima">忘记密码?</a>
		</div>
		<div class="formbtn">
			<div class="submit_btn" value="登录" name="fuceng-denglu-tijiaodenglu" onclick="login_ajax()">登录</div>
		</div>
	</form>
	<!--登录end-->
	<!--合作登录-->
	<div class="hezuo" style="display: none;">
		<div class="line_hezuo">
			<h4 class="tc">使用合作账号快速登录</h4></div>
		<div class="b_hezuo">
			<a href="javascript:;" id="qq_login" name="qq-denglu"><img style="float: left;" src="http://static.uthing.cn/images-2.1/login/qq.jpg">&nbsp;QQ</a>
			<a href="javascript:;" id="wb_login" name="weibo-denglu"><img style="float: left;" src="http://static.uthing.cn/images-2.1/login/weibo.jpg">&nbsp;微博</a>
			<a href="javascript:;" id="wx_login"><img style="float: left;" src="http://static.uthing.cn/images-2.1/login/weixin.jpg">&nbsp;微信</a>

		</div>
		<!--合作登录end-->
	</div>
</div>

<div class="top_bg">
	<div class="top_nav">
		<a class="group_logo" href="http://www.cclx.com">logo</a>
		<div class="group_tel">400-060-0766</div>
		<ul class="group_nav">
			<li>
				<a href="{:U('Index/index')}">首页</a>
			</li>

			<li>
				<a href="{:U('Product/lists')}">目的地<i class="group_i01"></i></a>
				<div class="group_menu" style="display:none;">
					<!-- 判断该州下面是否有城市，没有的话就不循环显示出来 -->
					<h2 class="g_menu_tit">大洋洲</h2>
					<div class="g_menu_con">

						<span><a href="http://www.cclx.com/category?q=1&c=1">澳大利亚</a></span>
						<span><a href="http://www.cclx.com/category?q=1&c=2">新西兰</a></span>

					</div>
					<!-- 判断该州下面是否有城市，没有的话就不循环显示出来 -->
					<h2 class="g_menu_tit">亚洲</h2>
					<div class="g_menu_con">

						<span><a href="http://www.cclx.com/category?q=2&c=3">日本</a></span>
						<span><a href="http://www.cclx.com/category?q=2&c=4">韩国</a></span>
						<span><a href="http://www.cclx.com/category?q=2&c=5">泰国</a></span>
						<span><a href="http://www.cclx.com/category?q=2&c=36">新加坡</a></span>

					</div>
					<!-- 判断该州下面是否有城市，没有的话就不循环显示出来 -->
					<h2 class="g_menu_tit">欧洲</h2>
					<div class="g_menu_con">

						<span><a href="http://www.cclx.com/category?q=3&c=10">法国</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=11">意大利</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=12">瑞士</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=13">德国</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=14">荷兰</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=15">西班牙</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=16">葡萄牙</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=17">希腊</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=18">英国</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=19">匈牙利</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=20">奥地利</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=21">捷克</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=22">比利时</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=23">爱尔兰</a></span>
						<span><a href="http://www.cclx.com/category?q=3&c=24">俄罗斯</a></span>

					</div>
					<!-- 判断该州下面是否有城市，没有的话就不循环显示出来 -->
					<h2 class="g_menu_tit">美洲</h2>
					<div class="g_menu_con">

						<span><a href="http://www.cclx.com/category?q=4&c=25">美国</a></span>
						<span><a href="http://www.cclx.com/category?q=4&c=26">加拿大</a></span>
						<span><a href="http://www.cclx.com/category?q=4&c=27">墨西哥</a></span>
						<span><a href="http://www.cclx.com/category?q=4&c=28">夏威夷</a></span>

					</div>
					<!-- 判断该州下面是否有城市，没有的话就不循环显示出来 -->
					<h2 class="g_menu_tit">中东非</h2>
					<div class="g_menu_con">

						<span><a href="http://www.cclx.com/category?q=5&c=29">迪拜</a></span>
						<span><a href="http://www.cclx.com/category?q=5&c=30">以色列</a></span>
						<span><a href="http://www.cclx.com/category?q=5&c=31">埃及土耳其</a></span>

					</div>
					<!-- 判断该州下面是否有城市，没有的话就不循环显示出来 -->
					<h2 class="g_menu_tit">海岛</h2>
					<div class="g_menu_con">

						<span><a href="http://www.cclx.com/category?q=6&c=32">巴厘岛</a></span>
						<span><a href="http://www.cclx.com/category?q=6&c=33">马尔代夫</a></span>
						<span><a href="http://www.cclx.com/category?q=6&c=34">塞舌尔</a></span>
						<span><a href="http://www.cclx.com/category?q=6&c=35">斐济</a></span>

					</div>

				</div>
			</li>
			<li>
				<a href="#">主题旅行<i class="group_i02"></i></a>
				<div class="group_menu zhuti" style="display:none;">

					<div class="g_menu_con01">

						<span><a href="http://www.cclx.com/category?sub=1">家庭亲子</a></span>
						<span><a href="http://www.cclx.com/category?sub=2">蜜月之行</a></span>
						<span><a href="http://www.cclx.com/category?sub=3">畅游经典</a></span>
						<span><a href="http://www.cclx.com/category?sub=6">美食美酒</a></span>
						<span><a href="http://www.cclx.com/category?sub=7">运动探险</a></span>

					</div>

				</div>
			</li>
			<li>
				<a href="{:U('Product/article')}">旅游游记</a>
			</li>
			<li>
				<div class="login-div">
					<span id="login_btn" onclick="$('.maskerElement').show();$('#login_box').show()">登陆</span> <span id="register_btn"><a href="{:U('User/register')}">注册</a></span>
				</div>
			</li>

		</ul>

	</div>
	<!--<span class="bottom-line"></span>-->
</div>
<script>
	$(function() {

		$(".group_nav li").hover(function() {
			if($(this).find("div").size() > 1) {
				$(this).find(".group_menu").slideDown();
				$(this).addClass("current");
			}
		}, function() {
			$(this).find(".group_menu").slideUp();
			$(this).removeClass("current");
		})
		$(".group_menu").hide();
	});

	function login_ajax() {
		var data = $("#loginForm").serialize();

		var url = "{:U('User/login_ajax')}";
		ajax(url, 'post', data, login_back);

	}

	function login_back(data) {
		if(data.status == 1) {
			layer.alert(data.msg, {
				icon: 1
			});
			window.location.href = data.url;

		} else {
			layer.alert(data.msg, {
				icon: 2
			});
			$('.layui-layer-dialog').css('top','30%');

		}
	}
</script>